from django.contrib import admin
from Big_Data_View import models
from .models import factory_env_data,Machine_data,Electric_power
# Register your models here.
@admin.register(factory_env_data)
class factory_env_data_Admin(admin.ModelAdmin):
    list_display = ('env_name','data_value','env_status','save_time')
admin.register(factory_env_data,factory_env_data_Admin)

@admin.register(Machine_data)
class Machine_data_Admin(admin.ModelAdmin):
    list_display = ('Machine_name','data_value','Machine_status','save_time')
admin.register(Machine_data,Machine_data_Admin)


@admin.register(Electric_power)
class Electric_power_Admin(admin.ModelAdmin):
    list_display = ('electric_name','data_value','used_status','save_time')
admin.register(Electric_power,Electric_power_Admin)
